package Exception;

/**
 * @author BianWenKai
 * @DATE 2021/8/29 - 18:11
 **/
public class Main {

    public static void main(String[] args) {
        try {
            test(-1);
        } catch (MyException e){
            System.out.println(e);
        }finally {
            System.out.println("OK_MESSAGE");
        }

        StringBuffer sb = new StringBuffer();
    }

    public static void test(int number) throws MyException {
        if (number < 0)
            throw new MyException();
    }

}
